package cn.hnu.domain.dto;

import cn.hnu.domain.Users;
import lombok.Data;

@Data
public class RegisterRequest {
    private String username;
    private String password;
    private String email;
    private Integer roleId;

    public Users toUsers() {
        Users users = new Users();
        users.setUsername(this.username);
        users.setPassword(this.password);
        users.setEmail(this.email);
        users.setRoleId(this.roleId);
        return users;
    }
}
